<?php

namespace common\models\active;

use common\models\BaseModel;

/**
 * Desc 促销活动商品模型
 */
class ActivePromotionGoodsModel extends BaseModel
{

    /** @var int 1 状态: 启用 */
    const STATE_ENABLE = 1;

    /** @var int 1 状态: 禁用 */
    const STATE_DISABLE = 2;

    // 状态
    public static $state = [
        self::STATE_ENABLE => '启用',
        self::STATE_DISABLE => '禁用',
    ];

    //使用
    const TYPE_USE = 1;
    //剔除
    const TYPE_NOT_USE = 2;

    /**
     * 活动商品类型
     */
    public static $type = [
        self::TYPE_USE => '使用',
        self::TYPE_NOT_USE => '剔除',
    ];
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%active_promotion_goods}}';
    }
}
